﻿
@{
    ViewBag.Title = "EmergencyTeamAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}


@section css{
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
}

<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a>修改密码</a>
            </li>
            <li class="crumb-link">
                <a>我的账号</a>
            </li>
            <li class="crumb-trail">修改密码</li>
        </ol>
    </div>
</header>

<div id="content" ng-cloak ng-controller="PasswordController" ng-init="AddModel={};ContentCheck=false;">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-info panel-border top mb35">
                <div class="panel-heading">
                    <span class="panel-title">修改登录密码</span>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">原密码</label>
                            <div class="col-sm-8">
                                <input type="password" class="form-control" ng-model="AddModel.Password" placeholder="此处输入原密码" maxlength="16" />
                            </div>
                            <label class="control-label">{{AddModel.SupplyName.length}}/100</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">新密码</label>
                            <div class="col-sm-8">
                                <input type="password" class="form-control" ng-model="AddModel.NewPassword" maxlength="16" ng-change="CheckNewPassword(AddModel.NewPassword);" placeholder="8-16个字符 包含大小写字母 数字" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label"></label>
                            <div class="col-lg-3">
                                <label class="control-label"> <span ng-show="ContentCheck" style="color:green;font-size:18px;">√</span><span ng-show="!ContentCheck" style="color:red;font-size:18px;">×</span>8-16个字符 包含大、小写字母、数字</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">重复密码</label>
                            <div class="col-sm-8">
                                <input type="password" class="form-control" ng-model="AddModel.ConfirmPassword" maxlength="16" placeholder="重复输入新密码" ng-init="AddModel.ConfirmPassword=''" ng-change="checkPassword(AddModel)" />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="panel-footer">
                    <div class="col-lg-2"></div>
                    <button type="button" class="btn btn-primary" ng-click="ChangePwd(AddModel,true);">提交</button>
                    <div class="col-lg-2">

                    </div>
                </div>
            </div>
        </div>
    </div>

</div>

@section Js{
    <script src="~/Bussiness/js/libs/upload.js"></script>
    <script src="~/Bussiness/js/pg/Password.js"></script>
    <script src="~/Bussiness/js/libs/moment.min.js"></script>
    <script src="~/Bussiness/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Bussiness/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Bussiness/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Bussiness/js/libs/fileinput.js"></script>
    <script src="~/Bussiness/js/libs/zh.js"></script>
    <script>

    </script>
}

